<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/ipc/IpcIoServer.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b94456e2763cc4ff61641ee1fd517631.html">ipc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">IpcIoServer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_ipc_io_server_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __IPCIOSERVEREX_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __IPCIOSERVEREX_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_ipc_server_8h.html">./internal/IpcServer.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html">   14</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_c_ipc_io_server.html">CIpcIoServer</a></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <a class="code" href="class_c_ipc_io_server.html#ad5c098ed55ba405ed01e4f1b070f6e60">delete_class_copy_operator</a>(<a class="code" href="class_c_ipc_io_server.html">CIpcIoServer</a>);</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a12dd16906f72d7e06244a6435fe3dd9e">   19</a></span>&#160;    <a class="code" href="class_c_ipc_io_server.html#a12dd16906f72d7e06244a6435fe3dd9e">CIpcIoServer</a>(<span class="keywordtype">bool</span> isWriteLog = <span class="keyword">false</span>){</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;         <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>.<a class="code" href="class_shared_ptr.html#a0b0a4c8396bf40f91994f729855c0a5a">Reset</a>(<span class="keyword">new</span> <a class="code" href="class_c_ipc_server.html">CIpcServer</a>(isWriteLog));</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    }</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a2ea26003f12bf038d6d8e49d5c881e66">   23</a></span>&#160;    <a class="code" href="class_c_ipc_io_server.html#a2ea26003f12bf038d6d8e49d5c881e66">~CIpcIoServer</a>() {}</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a55efd5d5edd7acb32972a3823ddefd31">   30</a></span>&#160;    <a class="code" href="class_c_sock_error.html">CSockError</a> <a class="code" href="class_c_ipc_io_server.html#a55efd5d5edd7acb32972a3823ddefd31">Init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name) {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a98dd72100abc97f8c8ae5f4641e18587">Init</a>(name);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    }</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#ae52c8b676492e7fcb304e4898bbcaa34">   42</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#ae52c8b676492e7fcb304e4898bbcaa34">AsyncAccept</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; cliSock, <span class="keyword">const</span> Func&amp; func) {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a6efd34ab8eecc267c0ab2b0317091efd">AsyncAccept</a>(cliSock, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> AcceptHandleNull&lt;Func&gt;(func)));</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    }</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#afd29a6d61f157b9ba14f7e1ecfb75d45">   46</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#afd29a6d61f157b9ba14f7e1ecfb75d45">AsyncAccept</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; cliSock, <span class="keyword">const</span> Func&amp; func, <span class="keywordtype">void</span>* invoker){</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a6efd34ab8eecc267c0ab2b0317091efd">AsyncAccept</a>(cliSock, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> AcceptHandle&lt;Func&gt;(func)), invoker);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#ac8ef5f1d1b1d94cb3fcf13259263bc96">   60</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#ac8ef5f1d1b1d94cb3fcf13259263bc96">AsyncRead</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, Func func) {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;         <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#ab3190c4366dd9367b2c77d180ec1bf6c">AsyncRead</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> ReadHandleNull&lt;Func&gt;(func)));</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#ab11d81dd17eacd9a2498cb158c9973cf">   64</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#ab11d81dd17eacd9a2498cb158c9973cf">AsyncRead</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, Func func, <span class="keywordtype">void</span>* invoker) {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#ab3190c4366dd9367b2c77d180ec1bf6c">AsyncRead</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> ReadHandle&lt;Func&gt;(func)), invoker);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a6cf632d61e840384aa78b4879749a41f">   78</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#a6cf632d61e840384aa78b4879749a41f">AsyncSend</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, <span class="keyword">const</span> Func&amp; func) {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;         <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#ac995cd72b148708616041968363efb12">AsyncSend</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> WriteHandleNull&lt;Func&gt;(func)));</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#ae0c4523dd20c1b027ca0ee07decea672">   82</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#ae0c4523dd20c1b027ca0ee07decea672">AsyncSend</a>(<a class="code" href="class_c_ipc_socket.html">CIpcSocket</a>&amp; sock, <span class="keyword">const</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>&amp; buff, <span class="keyword">const</span> Func&amp; func, <span class="keywordtype">void</span>* invoker) {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#ac995cd72b148708616041968363efb12">AsyncSend</a>(sock, buff, <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> WriteHandle&lt;Func&gt;(func)), invoker);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    }</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a5f9556a9d4f8b4b39c11267d8fa05760">   93</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#a5f9556a9d4f8b4b39c11267d8fa05760">Post</a>(<span class="keyword">const</span> Func&amp; func) {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a88248174bc0338fdc4c942e4e715a539">Post</a>(<a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> <a class="code" href="class_post_handle_null.html">PostHandleNull&lt;Func&gt;</a>(func)));</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#aba0fc2d0cf7d360a1c5759bf072a7d24">   97</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#aba0fc2d0cf7d360a1c5759bf072a7d24">Post</a>(<span class="keyword">const</span> Func&amp; func, <span class="keywordtype">void</span>* invoker) {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a88248174bc0338fdc4c942e4e715a539">Post</a>(<a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>(<span class="keyword">new</span> <a class="code" href="class_post_handle.html">PostHandle&lt;Func&gt;</a>(func)));</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    }</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a9d7a33231ced6eda3b9ee106b7cead6b">  106</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_ipc_io_server.html#a9d7a33231ced6eda3b9ee106b7cead6b">Run</a>() {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a33f88801a6fb30b8bfd9f0fdc063b77f">Run</a>();</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a27161c9e70e644b1d2788441ef0e3076">  114</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_ipc_io_server.html#a27161c9e70e644b1d2788441ef0e3076">Run_One</a>() {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#ae56ad501c3bf4a84f756b6bf98e8865e">Run_One</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a945e85590ca13c3d4b7330155e104b28">  119</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#a945e85590ca13c3d4b7330155e104b28">NotifyStop</a>() {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#ac62bb4a375227fe83a343e91c2851ee2">NotifyStop</a>();</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a746bf836dd22fb8a39ece045f326f6f0">  127</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_ipc_io_server.html#a746bf836dd22fb8a39ece045f326f6f0">IsStop</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a9629de28739f75f42c63550081b19520">IsStop</a>();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#aca3c4d76560f34639663f93b39284cf9">  132</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_ipc_io_server.html#aca3c4d76560f34639663f93b39284cf9">WaitServerStop</a>() {</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>-&gt;<a class="code" href="class_c_ipc_server.html#a0101ecf81b0384a2f6180441890d9140">WaitServerStop</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a5303c8f51f357ac51390c41f3bf80157">  137</a></span>&#160;    <a class="code" href="class_c_basic_service.html">CBasicService</a>* <a class="code" href="class_c_ipc_io_server.html#a5303c8f51f357ac51390c41f3bf80157">GetIpcServicePtr</a>() {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordflow">return</span> dynamic_cast&lt;CBasicService*&gt;(<a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>.<a class="code" href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">Get</a>());</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">  141</a></span>&#160;    <a class="code" href="class_shared_ptr.html">SharedPtr&lt;CIpcServer&gt;</a> <a class="code" href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">_service</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;};</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#endif // __IPCIOSERVEREX_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_ipc_io_server_html"><div class="ttname"><a href="class_c_ipc_io_server.html">CIpcIoServer</a></div><div class="ttdoc">扩展的c++11 tcp server类</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00014">IpcIoServer.h:14</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_a6efd34ab8eecc267c0ab2b0317091efd"><div class="ttname"><a href="class_c_ipc_server.html#a6efd34ab8eecc267c0ab2b0317091efd">CIpcServer::AsyncAccept</a></div><div class="ttdeci">virtual void AsyncAccept(CIpcSocket &amp;cliSock, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个接收连接请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00059">IpcServer.cpp:59</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_aba0fc2d0cf7d360a1c5759bf072a7d24"><div class="ttname"><a href="class_c_ipc_io_server.html#aba0fc2d0cf7d360a1c5759bf072a7d24">CIpcIoServer::Post</a></div><div class="ttdeci">void Post(const Func &amp;func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00097">IpcIoServer.h:97</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_afd29a6d61f157b9ba14f7e1ecfb75d45"><div class="ttname"><a href="class_c_ipc_io_server.html#afd29a6d61f157b9ba14f7e1ecfb75d45">CIpcIoServer::AsyncAccept</a></div><div class="ttdeci">void AsyncAccept(CIpcSocket &amp;cliSock, const Func &amp;func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00046">IpcIoServer.h:46</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_ac995cd72b148708616041968363efb12"><div class="ttname"><a href="class_c_ipc_server.html#ac995cd72b148708616041968363efb12">CIpcServer::AsyncSend</a></div><div class="ttdeci">virtual void AsyncSend(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个写请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00080">IpcServer.cpp:80</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a2ea26003f12bf038d6d8e49d5c881e66"><div class="ttname"><a href="class_c_ipc_io_server.html#a2ea26003f12bf038d6d8e49d5c881e66">CIpcIoServer::~CIpcIoServer</a></div><div class="ttdeci">~CIpcIoServer()</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00023">IpcIoServer.h:23</a></div></div>
<div class="ttc" id="aclass_c_sock_error_html"><div class="ttname"><a href="class_c_sock_error.html">CSockError</a></div><div class="ttdoc">套接字错误信息类</div><div class="ttdef"><b>Definition:</b> <a href="_sock_error_8h_source.html#l00013">SockError.h:13</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html"><div class="ttname"><a href="class_c_stream_iteator.html">CStreamIteator</a></div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00011">StreamByte.h:11</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_ac8ef5f1d1b1d94cb3fcf13259263bc96"><div class="ttname"><a href="class_c_ipc_io_server.html#ac8ef5f1d1b1d94cb3fcf13259263bc96">CIpcIoServer::AsyncRead</a></div><div class="ttdeci">void AsyncRead(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, Func func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00060">IpcIoServer.h:60</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html"><div class="ttname"><a href="class_shared_ptr.html">SharedPtr&lt; HandleBase &gt;</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a5f9556a9d4f8b4b39c11267d8fa05760"><div class="ttname"><a href="class_c_ipc_io_server.html#a5f9556a9d4f8b4b39c11267d8fa05760">CIpcIoServer::Post</a></div><div class="ttdeci">void Post(const Func &amp;func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00093">IpcIoServer.h:93</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a27161c9e70e644b1d2788441ef0e3076"><div class="ttname"><a href="class_c_ipc_io_server.html#a27161c9e70e644b1d2788441ef0e3076">CIpcIoServer::Run_One</a></div><div class="ttdeci">bool Run_One()</div><div class="ttdoc">运行一次服务</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00114">IpcIoServer.h:114</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html_a0f15d2d3d2834b0667791f3abfd9e0d7"><div class="ttname"><a href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">SharedPtr::Get</a></div><div class="ttdeci">Ty * Get()</div><div class="ttdef"><b>Definition:</b> <a href="_shared_ptr_8h_source.html#l00202">SharedPtr.h:202</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a55efd5d5edd7acb32972a3823ddefd31"><div class="ttname"><a href="class_c_ipc_io_server.html#a55efd5d5edd7acb32972a3823ddefd31">CIpcIoServer::Init</a></div><div class="ttdeci">CSockError Init(const char *name)</div><div class="ttdoc">初始化服务器类</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00030">IpcIoServer.h:30</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a12dd16906f72d7e06244a6435fe3dd9e"><div class="ttname"><a href="class_c_ipc_io_server.html#a12dd16906f72d7e06244a6435fe3dd9e">CIpcIoServer::CIpcIoServer</a></div><div class="ttdeci">CIpcIoServer(bool isWriteLog=false)</div><div class="ttdoc">构造函数</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00019">IpcIoServer.h:19</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a5303c8f51f357ac51390c41f3bf80157"><div class="ttname"><a href="class_c_ipc_io_server.html#a5303c8f51f357ac51390c41f3bf80157">CIpcIoServer::GetIpcServicePtr</a></div><div class="ttdeci">CBasicService * GetIpcServicePtr()</div><div class="ttdoc">获取底层服务类</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00137">IpcIoServer.h:137</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a6cf632d61e840384aa78b4879749a41f"><div class="ttname"><a href="class_c_ipc_io_server.html#a6cf632d61e840384aa78b4879749a41f">CIpcIoServer::AsyncSend</a></div><div class="ttdeci">void AsyncSend(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, const Func &amp;func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00078">IpcIoServer.h:78</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_ad5c098ed55ba405ed01e4f1b070f6e60"><div class="ttname"><a href="class_c_ipc_io_server.html#ad5c098ed55ba405ed01e4f1b070f6e60">CIpcIoServer::delete_class_copy_operator</a></div><div class="ttdeci">delete_class_copy_operator(CIpcIoServer)</div></div>
<div class="ttc" id="aclass_c_ipc_server_html_ac62bb4a375227fe83a343e91c2851ee2"><div class="ttname"><a href="class_c_ipc_server.html#ac62bb4a375227fe83a343e91c2851ee2">CIpcServer::NotifyStop</a></div><div class="ttdeci">virtual void NotifyStop()</div><div class="ttdoc">通知服务停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00108">IpcServer.cpp:108</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html"><div class="ttname"><a href="class_c_ipc_server.html">CIpcServer</a></div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8h_source.html#l00010">IpcServer.h:10</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_a88248174bc0338fdc4c942e4e715a539"><div class="ttname"><a href="class_c_ipc_server.html#a88248174bc0338fdc4c942e4e715a539">CIpcServer::Post</a></div><div class="ttdeci">virtual void Post(const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个中断请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00089">IpcServer.cpp:89</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_ae0c4523dd20c1b027ca0ee07decea672"><div class="ttname"><a href="class_c_ipc_io_server.html#ae0c4523dd20c1b027ca0ee07decea672">CIpcIoServer::AsyncSend</a></div><div class="ttdeci">void AsyncSend(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, const Func &amp;func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00082">IpcIoServer.h:82</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_ab3190c4366dd9367b2c77d180ec1bf6c"><div class="ttname"><a href="class_c_ipc_server.html#ab3190c4366dd9367b2c77d180ec1bf6c">CIpcServer::AsyncRead</a></div><div class="ttdeci">virtual void AsyncRead(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">投递一个接收请求</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00071">IpcServer.cpp:71</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_aca3c4d76560f34639663f93b39284cf9"><div class="ttname"><a href="class_c_ipc_io_server.html#aca3c4d76560f34639663f93b39284cf9">CIpcIoServer::WaitServerStop</a></div><div class="ttdeci">void WaitServerStop()</div><div class="ttdoc">通知服务停止并等待</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00132">IpcIoServer.h:132</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_ae56ad501c3bf4a84f756b6bf98e8865e"><div class="ttname"><a href="class_c_ipc_server.html#ae56ad501c3bf4a84f756b6bf98e8865e">CIpcServer::Run_One</a></div><div class="ttdeci">virtual bool Run_One()</div><div class="ttdoc">运行服务一次</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00098">IpcServer.cpp:98</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="aclass_post_handle_html"><div class="ttname"><a href="class_post_handle.html">PostHandle</a></div><div class="ttdoc">用户投递回调</div><div class="ttdef"><b>Definition:</b> <a href="_sock_tools_8h_source.html#l00242">SockTools.h:242</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a746bf836dd22fb8a39ece045f326f6f0"><div class="ttname"><a href="class_c_ipc_io_server.html#a746bf836dd22fb8a39ece045f326f6f0">CIpcIoServer::IsStop</a></div><div class="ttdeci">bool IsStop() const</div><div class="ttdoc">服务是否停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00127">IpcIoServer.h:127</a></div></div>
<div class="ttc" id="a_ipc_server_8h_html"><div class="ttname"><a href="_ipc_server_8h.html">IpcServer.h</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html_a0b0a4c8396bf40f91994f729855c0a5a"><div class="ttname"><a href="class_shared_ptr.html#a0b0a4c8396bf40f91994f729855c0a5a">SharedPtr::Reset</a></div><div class="ttdeci">void Reset(Ty *p)</div><div class="ttdef"><b>Definition:</b> <a href="_shared_ptr_8h_source.html#l00175">SharedPtr.h:175</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_a9629de28739f75f42c63550081b19520"><div class="ttname"><a href="class_c_ipc_server.html#a9629de28739f75f42c63550081b19520">CIpcServer::IsStop</a></div><div class="ttdeci">virtual bool IsStop() const</div><div class="ttdoc">判断服务是否停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00119">IpcServer.cpp:119</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a4e270ba9b8adecd082b5d613f58cd7c7"><div class="ttname"><a href="class_c_ipc_io_server.html#a4e270ba9b8adecd082b5d613f58cd7c7">CIpcIoServer::_service</a></div><div class="ttdeci">SharedPtr&lt; CIpcServer &gt; _service</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00141">IpcIoServer.h:141</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a945e85590ca13c3d4b7330155e104b28"><div class="ttname"><a href="class_c_ipc_io_server.html#a945e85590ca13c3d4b7330155e104b28">CIpcIoServer::NotifyStop</a></div><div class="ttdeci">void NotifyStop()</div><div class="ttdoc">通知服务停止</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00119">IpcIoServer.h:119</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_ab11d81dd17eacd9a2498cb158c9973cf"><div class="ttname"><a href="class_c_ipc_io_server.html#ab11d81dd17eacd9a2498cb158c9973cf">CIpcIoServer::AsyncRead</a></div><div class="ttdeci">void AsyncRead(CIpcSocket &amp;sock, const CStreamIteator &amp;buff, Func func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00064">IpcIoServer.h:64</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_a9d7a33231ced6eda3b9ee106b7cead6b"><div class="ttname"><a href="class_c_ipc_io_server.html#a9d7a33231ced6eda3b9ee106b7cead6b">CIpcIoServer::Run</a></div><div class="ttdeci">bool Run()</div><div class="ttdoc">运行服务</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00106">IpcIoServer.h:106</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_a98dd72100abc97f8c8ae5f4641e18587"><div class="ttname"><a href="class_c_ipc_server.html#a98dd72100abc97f8c8ae5f4641e18587">CIpcServer::Init</a></div><div class="ttdeci">virtual CSockError Init(const char *name)</div><div class="ttdoc">初始化服务器</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00033">IpcServer.cpp:33</a></div></div>
<div class="ttc" id="aclass_post_handle_null_html"><div class="ttname"><a href="class_post_handle_null.html">PostHandleNull</a></div><div class="ttdef"><b>Definition:</b> <a href="_sock_tools_8h_source.html#l00255">SockTools.h:255</a></div></div>
<div class="ttc" id="aclass_c_basic_service_html"><div class="ttname"><a href="class_c_basic_service.html">CBasicService</a></div><div class="ttdoc">服务类 基类</div><div class="ttdef"><b>Definition:</b> <a href="_service_base_8h_source.html#l00015">ServiceBase.h:15</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_a0101ecf81b0384a2f6180441890d9140"><div class="ttname"><a href="class_c_ipc_server.html#a0101ecf81b0384a2f6180441890d9140">CIpcServer::WaitServerStop</a></div><div class="ttdeci">virtual void WaitServerStop()</div><div class="ttdoc">通知服务停止并等待</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00113">IpcServer.cpp:113</a></div></div>
<div class="ttc" id="aclass_c_ipc_server_html_a33f88801a6fb30b8bfd9f0fdc063b77f"><div class="ttname"><a href="class_c_ipc_server.html#a33f88801a6fb30b8bfd9f0fdc063b77f">CIpcServer::Run</a></div><div class="ttdeci">virtual bool Run()</div><div class="ttdoc">运行服务</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_server_8cpp_source.html#l00103">IpcServer.cpp:103</a></div></div>
<div class="ttc" id="aclass_c_ipc_socket_html"><div class="ttname"><a href="class_c_ipc_socket.html">CIpcSocket</a></div><div class="ttdoc">ipc通信专用套接字</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_socket_8h_source.html#l00010">IpcSocket.h:10</a></div></div>
<div class="ttc" id="aclass_c_ipc_io_server_html_ae52c8b676492e7fcb304e4898bbcaa34"><div class="ttname"><a href="class_c_ipc_io_server.html#ae52c8b676492e7fcb304e4898bbcaa34">CIpcIoServer::AsyncAccept</a></div><div class="ttdeci">void AsyncAccept(CIpcSocket &amp;cliSock, const Func &amp;func)</div><div class="ttdef"><b>Definition:</b> <a href="_ipc_io_server_8h_source.html#l00042">IpcIoServer.h:42</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
